import {Component, OnInit, ViewEncapsulation, ChangeDetectionStrategy, Input} from '@angular/core';
import {Router} from "@angular/router";

@Component({
  selector: 'crowd-activity',
  templateUrl: './crowd-activity.component.html',
  styleUrls: ['./crowd-activity.component.scss'],
  encapsulation: ViewEncapsulation.None,
})
export class CrowdActivityComponent implements OnInit {
  @Input() dynamicList ;

  public userInfo;
  constructor(
    public router: Router,
  ) {

  }

  // 跳转个人主页
  goToPosterPage() {
     if (this.userInfo.userId) {
       this.router.navigate([`/`, this.userInfo.userId]);
     }
    // this.userInfo.userId && this.router.navigate([`/homepage`], {queryParams: {userId: this.userInfo.userId}});
  }

  ngOnInit() {

  }

}
